﻿namespace io.gitee.springsongs
{
    internal class Program
    {
        static void Main(string[] args)
        {
            WriteGreeting(TimeOfDay.Morning);
            Console.BackgroundColor = ConsoleColor.Green;
        }
        static void WriteGreeting(TimeOfDay timeOfDay)
        {
            switch (timeOfDay)
            {
                case TimeOfDay.Morning: Console.WriteLine("Morning"); break;
                case TimeOfDay.Afternoon: Console.WriteLine("Afternoon"); break;
                case TimeOfDay.Evening: Console.WriteLine("Evening"); break;
            }
        }

    }
    public enum TimeOfDay
    {
        Morning = 0,
        Afternoon = 1,
        Evening = 2,
    }
}